home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
rtextu10.zip
/
HEAD.DOC
< prev
next >
Wrap
Text File
|
1993-05-06
|
3KB
|
79 lines
# #
# # ###### ## #####
# # # # # # #
####### ##### # # # #
# # # ###### # #
# # # # # # #
# # ###### # # #####
You can get part of the following documentation by invoking the program with
the switches -v, -h, or -H . See README.TXT for more information.
----------------------------------- -v ------------------------------------
HEAD v1.0 -- Show the first lines of text files
Copr (c) 1992,1993 Richard Breuer. HEAD is freeware. No warranties.
This is HEAD/2 v1.0 - renamed to HEAD (from RUTILS 4).
Author: Richard Breuer
Brunssumstrasse 6
5100 Aachen
(after Jul 1, 1993: 52074 Aachen)
Germany
Europe
Phone: +49/241/85605
Fax: +49/241/8021329
Email: ricki@pool.informatik.rwth-aachen.de (Preferred!)
----------------------------------- -h ------------------------------------
HEAD v1.0 -- Show the first lines of text files
Copr (c) 1992,1993 Richard Breuer. HEAD is freeware. No warranties.
Usage:
HEAD [-hHqv*] [-<n>] infile.. [{>|>>} outfile]
Options:
-<n> Display the first n lines. n must be non-negative. Default is n=10
-h Display this help screen
-H Display another help screen
-q Supress the output of ==> filename <==, if multiple files are
processed
-v Display version info
-* Display internal information (for debugging purposes)
----------------------------------- -H ------------------------------------
HEAD v1.0 -- Show the first lines of text files
Copr (c) 1992,1993 Richard Breuer. HEAD is freeware. No warranties.
Notes:
HEAD reads from stdin if a filename is -. The output is always directed
to stdout. The line lengths are restricted to 255 characters. Longer lines
will be cut. The errorlevel is set to 1 if help has been displayed. It is
set to 255 in case of an error and 0 on normal completion. Output resulting
from multiple input files is appended to stdout. The processing order for
wildcards depends on the order of the directory entries. HEAD returns
nonsense for binary files.
Examples:
HEAD *.TXT
Process all *.TXT files in the current directory and append them to
stdout. The order is the one DOS's dir tells you.
DIR | HEAD -4
Display the first 4 lines of the directory.
HEAD HEADER.TXT - FOOTER.TXT
After processing HEADER.TXT the user must input text from the keyboard
until Ctrl/Z (=EOF) is detected. Then FOOTER.TXT is processed. All output
is appended on stdout.
-------------------------------------------------------------------------------
Additional information:
HEAD is a re-implementation of the Unix command with the same name. One
minor difference is the -q option.